package com.design.pattern.proxy.dynamicproxy;

public class Client {

    public static void main(String[] args) {
        TeacherDao teacherDao = new TeacherDaoImpl();
        ProxyFactory proxyFactory = new ProxyFactory(teacherDao);
        TeacherDao proxyInstance = (TeacherDao) proxyFactory.getProxyInstance();
//        proxyInstance.teach();
        System.out.println(proxyInstance.sayHello());
    }
}
